<?php
/**
 * Created by PhpStorm.
 * User: 76587
 * Date: 2018-05-29
 * Time: 11:24
 */

namespace services\user;


use services\user\models\User;
use yii\swoole\modellogic\BaseLogic;

class UserLogic extends BaseLogic
{
    public static $modelClass = User::class;

    public static function findOne($id)
    {
        return User::findOne($id)->toArray();
    }

    public static function findByUsername($username)
    {
        return User::findByUsername($username)->toArray();
    }
}